<html>
<head><meta charset="utf-8"><title>corrupted crates.io index · t-cargo · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/index.html">t-cargo</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/corrupted.20crates.2Eio.20index.html">corrupted crates.io index</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="206328444"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/246057-t-cargo/topic/corrupted%20crates.io%20index/near/206328444" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Matthew Graham <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/corrupted.20crates.2Eio.20index.html#206328444">(Aug 08 2020 at 03:06)</a>:</h4>
<p>I was trying to run <code>cargo install cargo-binutils</code> and in the middle of running it, my laptop powered down b/c of low battery.</p>
<p>Now when I try to run most cargo commands, I get some version of the following error:</p>
<div class="codehilite"><pre><span></span><code>$ cargo install cargo-binutils
    Updating crates.io index
error: failed to fetch `https://github.com/rust-lang/crates.io-index`

Caused by:
  object not found - no match for id (21d81e29b31b1b507e6a70ff0c27cd67ce52aa25); class=Odb (9); code=NotFound (-3)
</code></pre></div>


<p>I assume I just need to delete or reset something, but what it is is not clear. Any tips on how to reset my <a href="http://crates.io">crates.io</a> index? Thanks!</p>



<a name="206328564"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/246057-t-cargo/topic/corrupted%20crates.io%20index/near/206328564" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Notification Bot <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/corrupted.20crates.2Eio.20index.html#206328564">(Aug 08 2020 at 03:10)</a>:</h4>
<p>This topic was moved here from <a class="stream-topic" data-stream-id="122651" href="/#narrow/stream/122651-general/topic/corrupted.20crates.2Eio.20index">#general &gt; corrupted crates.io index</a> by <span class="user-mention silent" data-user-id="116122">simulacrum</span></p>



<a name="206330609"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/246057-t-cargo/topic/corrupted%20crates.io%20index/near/206330609" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Matthew Graham <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/corrupted.20crates.2Eio.20index.html#206330609">(Aug 08 2020 at 04:13)</a>:</h4>
<p>ok, I deleted <code>~/.cargo/registry</code> and everything started working again.</p>
<p>I'd still be curious to know where/what the actual problem might have been. I grepped for that hash and couldn't find it anywhere.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>